package DBLayer;

import java.util.ArrayList;

import ModelLayer.ProductLine;

public interface IFDBProductLine
{
	//find ProductLine by id
	public ProductLine getProductLineByID(int productId, int orderId, boolean retrieveAssociation);
	
	//find the product lines for an  order
	public ArrayList<ProductLine> getProductLinesForOrder(int orderId, boolean retrieveAssociation);
	
	//insert ProductLine in database
	public int insertProductLine(ProductLine productLine) throws Exception;
	
	//update ProductLine
	public int updateProductLine(ProductLine productLine);
	
	//delete ProductLine
	public int deleteProductLine(int productId, int orderId);
}
